// 此处存放所有与登录有关的接口请求
import request from '@/utils/request'
export const getPicCode = () => request.get('captcha/image')
// 按需导出

// 发送短信验证码接口
export const getMsgCode = (captchaCode, captchaKey, mobile) => request.post('/captcha/sendSmsCaptcha',
  { // 请求参数
    form: {
      captchaCode,
      captchaKey,
      mobile
    }
  })

// 登录接口
export const codeLogin = (mobile, smsCode) => request.post('/passport/login', {
  form: {
    isParty: false,
    partyData: {},
    mobile,
    smsCode
  }
})
